#include "stdio.h"
#include "malloc.h"
#include "stdlib.h"

 struct test
{
  double i;
   char c;
    struct test *p;
    struct test *q;
};


int tests(struct test * tt)
{   
   int temp1,temp2,temp3,temp4,temp5,temp6,temp7,temp8,temp9,temp10,temp11,temp12;
      struct test st;
    tt=(struct test *)malloc(sizeof(struct test));
    
    tt->i=5;
  
    tt->p=NULL;
    tt->q=NULL;
   
    temp1=sizeof(tt->p);
    temp2=sizeof(tt->i);
    temp3=sizeof(tt->c);
    temp4=sizeof(tt);
    temp5=sizeof(struct test);
    temp6=sizeof(double)+sizeof(char)+sizeof(struct test *)*2;
    temp7=&(tt->i);
    temp8=&(tt->c);
    temp9=&(tt->p);
    temp10=&(tt->q);
    temp11=&tt;
    temp12=&st;
    return 0;
    
}
int main()
{  
   
    struct test *aa=NULL;
    int tmp1=&aa;
   
    tests(aa);
     struct test * bb=NULL;
     bb=(struct test *)malloc(sizeof(struct test));
     int temp0;
     temp0=&bb;
     
     
     
     aa->p=bb;
     bb->p=bb->q=NULL;
     free(aa);
    printf("hello world");
    system("PAUSE");
    
     
    return 0;
}
